<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:text name="title"/></title>
<link href="<%=request.getContextPath()%>/stage/css/inside.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/stage/js/jquery-1.4.2.min.js"></script>
<script type="text/JavaScript">
<!--
$(document).ready(function() {
	setSelect();
})
function setSelect(){
	var text="<s:property value="inlayDiamondBo.inlayType"/>";
	var count=$("#typeselect option").length;
	  for(var i=0;i<count;i++)  
	     {           if($("#typeselect").get(0).options[i].text == text)  
	        {  
	            $("#typeselect").get(0).options[i].selected = true;  
	          
	            break;  
	        }  
	    } 


}
function toreset(){
	$("#inlayName").val('');
	$("#inlayNumber").val('');
	$("#pmin").val('');
	$("#pmax").val('');
	return false;
}

var isIE = false;
var isFF = false;

if ((navigator.userAgent.indexOf("MSIE")>0) && (parseInt(navigator.appVersion) >=4)) isIE = true;
if (navigator.userAgent.indexOf("Firefox")>0) isFF = true;

function isNUM(e)
{
var iKeyCode = window.event?e.keyCode:e.which;
if(!(((iKeyCode >= 48) && (iKeyCode <= 57)) || (iKeyCode == 13) || (iKeyCode == 46) || (iKeyCode == 45)

|| (iKeyCode == 37) || (iKeyCode == 39) || (iKeyCode == 8)))
{  
    if (isIE)
    {
        e.returnValue=false;
    }
    else
    {
        e.preventDefault();   //重要 firefox是用prevenDefault()来取消事件的
    }
}
}  
//-->
</script>
</head>

<body onload="MM_preloadImages('<%=request.getContextPath()%>/stage/images/menu0_01.jpg','<%=request.getContextPath()%>/stage/images/menu0_02.jpg','<%=request.getContextPath()%>/stage/images/menu0_03.jpg','<%=request.getContextPath()%>/stage/images/menu0_04.jpg','<%=request.getContextPath()%>/stage/images/menu0_05.jpg','<%=request.getContextPath()%>/stage/images/menu0_06.jpg','<%=request.getContextPath()%>/stage/images/menu0_07.jpg')">
<div class="mainbody">
<%@ include file="head1.jsp"%>
 <div class="intermediate">
    <h1>当前位置：首页&nbsp;&gt;&nbsp;<b><FONT COLOR="#FFCC66">钻托信息</FONT></b></h1>
<%@ include file="left.jsp"%>
    <div class="right">
         <h4><img src="<%=request.getContextPath()%>/stage/images/xzzt/xzzt.png" width="132" height="16" /></h4>
		 <div class="jgkz_bt">
		    <ul>
		       <li><img src="<%=request.getContextPath()%>/stage/images/xzzt/xzzt_03.jpg" width="87" height="29" /></li>
			   <li><img src="<%=request.getContextPath()%>/stage/images/zscx/zscx_14.jpg" width="35" height="29" /></li>
			   <li><img src="<%=request.getContextPath()%>/stage/images/xzzt/xzzt_05.jpg" width="87" height="29" /></li>
			   <li><img src="<%=request.getContextPath()%>/stage/images/zscx/zscx_14.jpg" width="35" height="29" /></li>
			   <li><img src="<%=request.getContextPath()%>/stage/images/zscx/zscx_11.jpg" width="87" height="29" /></li>
           </ul>
	  </div>
	  
	  <div class="xzzt2">
	    <form action="<%=request.getContextPath()%>/toinlay.action" method="post">
	    	<ul>
		     <li>
		       <label>
		       	名称:<input id="inlayName" name="inlayDiamondBo.inlayName" value="<s:property value="inlayDiamondBo.inlayName"/>" type="text" class="dlk1" />
		       </label>
		     </li>
		     <li>
		       <label>
		                     编号:<input id="inlayNumber" name="inlayDiamondBo.inlayNumber" value="<s:property value="inlayDiamondBo.inlayNumber"/>" type="text" class="dlk1" />
		       </label>
		     </li>
			<li>
			<input type="image" name="imageField2" src="<%=request.getContextPath()%>/stage/images/common/search.gif" onclick="submit()"/>
			<input type="image" onclick="return toreset()" id="reset" src="<%=request.getContextPath()%>/stage/images/common/reset.gif" />
			</li>
		  </ul>
		  <ul>
		     <li>钻托类型：<select  id="typeselect" name="inlayDiamondBo.inlayType" value="<s:property value="inlayDiamondBo.inlayType"/>">  
		     			<option value="">全部</option> 
           				<option value="女戒">女戒</option>   
           				<option value="男戒">男戒</option>
           				<option value="吊坠">吊坠</option>   
           				<option value="耳钉">耳钉</option>
           				<option value="手链">手链</option>      
        				</select>
        	</li>
        	<li>
        	<label>
      			价格:<input maxlength="8" id="pmin" value='<s:property value="inlayDiamondBo.minPrice"/>' name="inlayDiamondBo.minPrice" type="text" class="kuang3" onKeypress="return isNUM(event);"/>
      			</label>-<label>
      			<input maxlength="8" id="pmax" value='<s:property value="inlayDiamondBo.maxPrice"/>' name="inlayDiamondBo.maxPrice" type="text" class="kuang3" onKeypress="return isNUM(event);"/>
      		</label>
        	</li>
		  </ul>
	   </form>
	  </div>
	 
	  <div class="jgkz_01">
	      <div class="xzzt1">
	      <s:iterator value="dataList" status="u">
		   <dl>
		     <dd><a href="<%=request.getContextPath()%>/toinlaydetail.action?inlayDiamondId=<s:property value="inlayDiamondId"/>"><img src="<s:text name="web_pic"/>/<s:property value="picture"/>" width="100%" height="129" border="0"/></a></dd>
		     <dt><s:property value="inlayName"/>&nbsp;￥<s:property value="priceFormat"/></dt>
		  </dl>
		  <s:if test="#(u.index+1)%3==0"></div><div class="xzzt1"></s:if>
            </s:iterator>
          </div>
	  </div>
	  
      <div class="jgkz_bt" style=" margin:5px auto 0 auto">
           <ul style="height:21px;">
			 <li><jsp:include page="page.jsp"/></li>
           </ul>
      </div>
    </div>
 </div>
 <%@ include file="foot.jsp"%>
</div>
</body>
</html>
